package com.ruoyi.household.service.impl;

import java.util.List;

import com.ruoyi.system.api.domain.BuildingSystem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.household.mapper.BuildingSystemMapper;
import com.ruoyi.household.service.IBuildingSystemService;

/**
 * 楼栋CRUDService业务层处理
 * 
 * @author ruoyi
 * @date 2022-10-01
 */
@Service
public class BuildingSystemServiceImpl implements IBuildingSystemService 
{
    @Autowired
    private BuildingSystemMapper buildingSystemMapper;

    /**
     * 查询楼栋CRUD
     * 
     * @param id 楼栋CRUD主键
     * @return 楼栋CRUD
     */
    @Override
    public BuildingSystem selectBuildingSystemById(Long id)
    {
        return buildingSystemMapper.selectBuildingSystemById(id);
    }

    /**
     * 查询楼栋CRUD列表
     * 
     * @param buildingSystem 楼栋CRUD
     * @return 楼栋CRUD
     */
    @Override
    public List<BuildingSystem> selectBuildingSystemList(BuildingSystem buildingSystem)
    {
        return buildingSystemMapper.selectBuildingSystemList(buildingSystem);
    }

    @Override
    public BuildingSystem selectBuildingByName(String rQName) {
        return buildingSystemMapper.selectBuildingByName(rQName);
    }

    /**
     * 新增楼栋CRUD
     * 
     * @param buildingSystem 楼栋CRUD
     * @return 结果
     */
    @Override
    public int insertBuildingSystem(BuildingSystem buildingSystem)
    {
        return buildingSystemMapper.insertBuildingSystem(buildingSystem);
    }

    /**
     * 修改楼栋CRUD
     * 
     * @param buildingSystem 楼栋CRUD
     * @return 结果
     */
    @Override
    public int updateBuildingSystem(BuildingSystem buildingSystem)
    {
        return buildingSystemMapper.updateBuildingSystem(buildingSystem);
    }

    /**
     * 批量删除楼栋CRUD
     * 
     * @param ids 需要删除的楼栋CRUD主键
     * @return 结果
     */
    @Override
    public int deleteBuildingSystemByIds(Long[] ids)
    {
        return buildingSystemMapper.deleteBuildingSystemByIds(ids);
    }

    /**
     * 删除楼栋CRUD信息
     * 
     * @param id 楼栋CRUD主键
     * @return 结果
     */
    @Override
    public int deleteBuildingSystemById(Long id)
    {
        return buildingSystemMapper.deleteBuildingSystemById(id);
    }
}
